package com.aigis.big4.tmp.javase.collection.map;

public class R implements Comparable {
    int count;

    public R(int count) {
        this.count = count;
    }

    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o != null && o.getClass() == this.getClass()) {
            R r = (R) o;
            return r.count == this.count;
        }
        return false;
    }

    @Override
    public int compareTo(Object o) {
        R r = (R) o;
        return count > r.count ? -1
                : count < r.count ? 1 : 0;
    }
}
